//导入request
import request from '@/utils/request.js'

//调用接口函数
export const adminRegisterService = (registerData) =>{
    const params = new URLSearchParams()
    for(let key in registerData){
        params.append(key,registerData[key])
    }
    return request.post('/admin/register',params);
}

//登录接口
export const adminLoginService = (loginData) =>{
    const params = new URLSearchParams()
    for(let key in loginData){
        params.append(key,loginData[key])
    }
    return request.post('/admin/login',params);
}

//获取管理员信息
export const adminInfoService = ()=>{
    return request.get('/admin/adminInfo')
}
